<?php
defined('SYSPATH') or die('No direct script access.');

class Model_Dish extends ORM{
	
	protected $_table_name  = 'dish';
	protected $_table_names_plural = false;
	
	public function displayDishName(){
		if (!empty($this->copyfrom) && $this->copyfrom > 0){
			return '<span style="color:red">'.$this->name.'-copy</span>';
		}
		return $this->name;
	}
}